package edu.nyp.locationservicesapp.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * 统一Toast管理工具
 */
public class ToastUtil {
    public static void showShortToast(Context context, CharSequence msg) {
        showToast(context.getApplicationContext(), msg, Toast.LENGTH_SHORT);
    }

    private static void showToast(Context context, CharSequence msg, int duration) {
        Toast.makeText(context, msg, duration).show();
    }

}
